﻿using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.UI.ViewModels
{
    public class SettingViewModel: BindableBase
    {
        private readonly IRegionManager regionManager;

        public SettingViewModel(IRegionManager regionManager)
        {
            this.regionManager = regionManager;
            Init();
        }
        private void Init()
        {

            regionManager.RegisterViewWithRegion("SettingMachineRegion", "SetPLCConfigView");
            regionManager.RegisterViewWithRegion("SettingCheckRegion", "SetCheckTempleteView");
            regionManager.RegisterViewWithRegion("SettingCameraRegion", "SetCameraView");
            //regionManager.RegisterViewWithRegion("MainRegion", "StartView");
            //var menuRegion = this.regionManager.Regions["MenuRegion"];
            //menuRegion.RequestNavigate("MenuView");
        }
    }
}
